if (WIN32)
    add_executable(${EXECUTABLE_NAME} WIN32 main.cpp)
    set(APP_ICON_RESOURCE_WINDOWS "${PROJECT_SOURCE_DIR}/app.rc")
    target_sources(${EXECUTABLE_NAME} PRIVATE ${APP_ICON_RESOURCE_WINDOWS})
else()
    add_executable(${EXECUTABLE_NAME} main.cpp)
endif()
set(GUI_LIB "")
if (QML_GUI)
    set(GUI_LIB guiqml)
else ()
    set(GUI_LIB gui)
endif ()
target_link_libraries(${EXECUTABLE_NAME} ${GUI_LIB} Qt6::Widgets)
add_dependencies(${EXECUTABLE_NAME} ${GUI_LIB} BuildInfo.h)
